import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { CarbasicInformationVO, CarbasicInformationForm, CarbasicInformationQuery } from '@/api/zichanguanli/carbasicInformation/types';

/**
 * 获取土地信息详细信息
 * @param query
 * @returns {*}
 */

export const totalLandArea = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/landSurvey/totalLandArea',
    method: 'get',
    params: query
  });
};

/**
 * 获取土地用途分布统计
 * @param query
 * @returns {*}
 */

export const landUse = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/landOverview',
    method: 'get',
    params: query
  });
};

/**
 * 获取土地租赁分布
 * @param query
 * @returns {*}
 */

export const landRentDistribution = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/landSurvey/landRentDistribution',
    method: 'get',
    params: query
  });
};

/**
 * 获取园区总面积以及当年租金收入
 * @param query
 * @returns {*}
 */

export const getRentalIncomeArea = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/parkOverview',
    method: 'get',
    params: query
  });
};

/**
 * 获取公寓出租率
 * @param query
 * @returns {*}
 */

export const getApartmentRentalRate = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/getApartmentRentalRate',
    method: 'get',
    params: query
  });
};

/**
 * 房产出租率
 * @param query
 * @returns {*}
 */

export const getPropertyRentalRate = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/houseOccupancyRate',
    method: 'get',
    params: query
  });
};

/**
 * 办公出租率
 * @param query
 * @returns {*}
 */

export const getOfficeRentalRate = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/officeRentalRate',
    method: 'get',
    params: query
  });
};

/**
 * 混凝土搅拌站
 * @param query
 * @returns {*}
 */

export const mixtureConcreteMixingStation = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/mixtureConcreteMixingStation',
    method: 'get',
    params: query
  });
};

/**
 * 查询汽车品牌分布情况
 * @param query
 * @returns {*}
 */

export const brandDistribution = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/carbasicInformation/brandDistribution',
    method: 'get',
    params: query
  });
};

/**
 * 查询汽车出租情况
 * @param query
 * @returns {*}
 */

export const rental = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/automotiveOperations',
    method: 'get',
    params: query
  });
};

/**
 * 资产概览
 * @param query
 * @returns {*}
 */

export const overviewOfAssets = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/overviewOfAssets',
    method: 'get',
    params: query
  });
};

/**
 * 资产
 * @param query
 * @returns {*}
 */

export const largAssetValuation = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/largeScreen/assetValuation',
    method: 'get',
    params: query
  });
};

/**
 * 园区总面积以及个数
 * @param query
 * @returns {*}
 */

export const parkareaCount = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/assetsOverview/parkareaCount',
    method: 'get',
    params: query
  });
};

/**
 * 土地总面积以及个数
 * @param query
 * @returns {*}
 */

export const landAreaCount = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/assetsOverview/landAreaCount',
    method: 'get',
    params: query
  });
};

/**
 * 商业住宅统计
 * @param query
 * @returns {*}
 */

export const businessApartmentCount = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/assetsOverview/businessApartmentCount',
    method: 'get',
    params: query
  });
};

/**
 * 土地资产估值
 * @param query
 * @returns {*}
 */

export const assetValuation = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/assetsOverview/assetValuation',
    method: 'get',
    params: query
  });
};

/**
 * 公寓房间数据以及面积
 * @param query
 * @returns {*}
 */

export const apartmentAreaCount = (query?: any): AxiosPromise<CarbasicInformationVO[]> => {
  return request({
    url: '/zichanguanli/assetsOverview/apartmentAreaCount',
    method: 'get',
    params: query
  });
};
